import{createStore,applyMiddleware,combineReducers} from 'redux'
import countReducer from './reducers/countReducers'
import movieReducer from './reducers/movieReducers'
import thunk from 'redux-thunk'
//引入这个可以在浏览器中使用reacttools来查看state和action的变化
import {composeWithDevTools} from 'redux-devtools-extension'

const allReducer =  combineReducers({
    count:countReducer,
    movie:movieReducer
})
const store = createStore(allReducer, composeWithDevTools(applyMiddleware(thunk)))


export default store